lst = [4, 56, 3, 78, 40, 56, 89]
print("原列表：", lst)
print("-------------------------------------------")

# 排序
asc_lst = sorted(lst)
print("升序：", asc_lst)
print("原列表：", lst)
print("-------------------------------------------")

# 降序
desc_list = sorted(lst, reverse=True)
print("降序：", desc_list)
print("原列表：", lst)
print("-------------------------------------------")

lst2 = ["banana", "apple", "pear", "Tangerine", "Grape", "Pineapple"]
print("原列表：", lst2)
print("=============================================================================")

# 忽略大小写进行排序
new_list2 = sorted(lst2, key=str.lower)
print("原列表：", lst2)
print("排序后的列表：", new_list2)

